In this lab, you will try to create an Availability Group listener. The Listener creation will fail. The goal is to try and identify the cause of the failure and fix the issue.
At the end of this lab, you will be able to:
30 minutes
Use the following credentials to login into virtual environment
Before starting the training module, we recommend that you launch the labs and give them some time to stabilize. Please be aware that sometimes the AG may be in a resolving state and AG Replicas may be in a disconnected state. This is a platform issue and should stabilize after a few minutes
Before you begin with the first exercise in the lab, let's review the lab environment.
In the lab, you have one Domain Controller and 3 nodes + 1 client computer.
AlwaysOnN1 and AlwaysOnN2 nodes are in the primary Datacenter.
AlwaysOnN3 is in the secondary datacenter.
For this lab, both the datacenters are in the same subnet.
Each node has Windows Server 2022 O/S installed.
SQL Server 2022 Standalone instances are installed on all the 3 nodes (i.e. AlwaysOnN1, AlwaysOnN2, AlwaysOnN3).
In this exercise, you will learn how to Create a Listener for the Availability Group.
Create listener using the New Availability Group wizard.
In this task, you will use the SQL Server management studio to create listener. Perform this task on the virtual machine AlwaysOnClient.
Open SSMS and Connect to AlwaysOnN1, AlwaysOnN2 and AlwaysOnN3 SQL Instances. Availability Group (AGCorp) has already been deployed and the above 3 instances are the replicas. Identify the replica that is the primary replica and perform the next step on that instance.
On the primary instance, expand Availability Groups - Expand AGCorp Availability Group - right click Availability Group Listener and click on the Add Listener option.
In the New Availability Group Listener dialog, type the Listener DNS Name as AGCorpListen. Type the Port as 1433 and select Static IP for Network Mode and click Add.
In the Add IP Address dialog, select the 10.1.1.0/24 subnet and type 10.1.1.106 as shown below. Click OK.
Review the page and click Ok.
After a few minutes, a pop-up message will show up. Review the message and click Ok. The below message might or might not show up in all listener creation failure scenarios.
Click ok on the listener creation page to try and create the listener again.
This time you will get another pop-up, review the message and click Ok. The below message (Error Number: 19471) is the common message that will show up in listener creation failure scenarios.
Click cancel on the listener creation page.
Feel free to recreate the listener as you try various options to fix the issue.
You have successfully completed this exercise. Click Next to advance to the next exercise.
In this exercise, you will learn how to Identify the cause of the failure and fix the issue.
This is a non-guided activity and the attendees are expected to try and troubleshoot this issue on their own.
You can use any resources (including the internet or your own scripts), to troubleshoot the issue.
You can use the tools discussed in the first module to help troubleshoot the issue.
The possible causes discussed earlier in the lesson can be used as guidance for troubleshooting.
The instructor will discuss the troubleshooting steps, cause and solution in detail after this lab session.
You might have to login directly on the individual nodes to troubleshoot the issue.
Ask yourself the below questions:
Use some commands that could be used for troubleshooting the issue.
This is not a complete list of commands/tools to help troubleshoot this issue. There are various ways/methods/approaches to troubleshoot an issue. These commands/tools referenced here could be used to look up/identify useful information for this lab.
To generate the Windows cluster log by using Windows PowerShell, run the following cmdlet in an elevated PowerShell window:
PowerShellGet-ClusterLog
By default, the log file is created in %WINDIR%\cluster\reports.
The Cluster.log file entries are in logged in Coordinated Universal Time (UTC).
To get more information on the error numbers in the cluster log, Net helpmsg could be used (Command prompt).
CMD Net helpmsg 8557
You have successfully completed this exercise. Click Next to advance to the next lab.